package cn.com.infcn.monitor.util;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * 监控组件常量类
 * 
 * @version 1.0
 * @author jijs 2016-05-05
 */

public class IFCMonitorConstanst {

	public static final String MONITOR_RESPONSE_CODE_OK = "200";
	
	public static final String MONITOR_RESPONSE_CODE_ERROR = "400";
	
	public static final String MONITOR_LOG_FILE_PREFIX = "IFCMonitor-";
	
	//监控的目录信息
	public static List<String> dirPaths = new ArrayList<String>();
	//默认监控类型中不需要监控的类型
	public static List<String> excludeTypeList = new ArrayList<String>();
	//默认监控类型之外需要监控的类型
	public static List<String> includeTypeList = new ArrayList<String>();
	//http reqeust 不监控的url 后缀
	public static List<String> filterSuffixs = new ArrayList<String>();
	
	public static int monitorInterval = 60;
	//监控日志文件存储路径
	public static String dataPath = File.separator;
	
	//监控日志文件，默认存放路径
	public static String dataPathDefault = "monitorlog" + File.separator;
	
	//监控servlet请求的路径
	public final static String MONITORING_SERVLET_PATH_NAME = "IFCMonitorServlet";
	public final static String MONITOR_TYPE = "monitorType";
	public final static String MONITOR_PAGE_PATH_NAME = "ifcmonitor";
	
	
	public static final String WARNING_THRESHOLD_MILLIS = "warning-threshold-millis";

	public static final String SEVERE_THRESHOLD_MILLIS = "severe-threshold-millis";
}